#coding:utf-8

import json
import requests

# 设置中文
import sys
reload(sys)
sys.setdefaultencoding('utf-8')


url = "http://openapi.baidu.com/public/2.0/bmt/translate?client_id=ZTXxY9k5hUDTjzRureTp5CEF&q=&q=today&from=auto&to=auto"

data = requests.get(url).text

print data

msg = json.loads(data)

print msg['trans_result'][0]['dst']